import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SDramaLotteryItemInfo
    
    export  class SDramaLotteryItemInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SDramaLotteryItemInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.category);
            arg1.writeInt(this.itemCode);
            arg1.writeInt(this.oldPrice);
            arg1.writeInt(this.newPrice);
            arg1.writeBool(this.broadcast);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.category = arg1.readInt();
            this.itemCode = arg1.readInt();
            this.oldPrice = arg1.readInt();
            this.newPrice = arg1.readInt();
            this.broadcast = arg1.readBool();
            return;
        }

        public /* const */_type: int=12453;

        public /* var */category: int;

        public /* var */itemCode: int;

        public /* var */oldPrice: int;

        public /* var */newPrice: int;

        public /* var */broadcast: Boolean;

        public static /* var */_regist: SDramaLotteryItemInfo;
    }

            SDramaLotteryItemInfo._regist = new SDramaLotteryItemInfo(true);
        